#include "Money.h"
//#include "Dollar.h"
//#include "Franc.h"

Money::Money(int amount, QString currency)
{
	this->amount = amount;
	this->m_currency = currency;
}


Money::~Money()
{
}

bool Money::equals(Money* object)
{
	//int iii = 9;
	//return true;
	return ((amount == object->amount) &&
		(m_currency == (object->currency())));
}

Money* Money::dollar(int amount)
{
	//return new Dollar(amount, "USD");
	return new Money(amount, "USD");
}

Money* Money::franc(int amount)
{
	//return new Franc(amount, "CHF");
	return new Money(amount, "CHF");
}

QString Money::currency()
{
	return m_currency;
}
